package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.QCktongjiMapper;
import com.ruoyi.system.domain.QCktongji;
import com.ruoyi.system.service.IQCktongjiService;
import com.ruoyi.common.core.text.Convert;

/**
 * 窗口人员统计Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-13
 */
@Service
public class QCktongjiServiceImpl implements IQCktongjiService 
{
    @Autowired
    private QCktongjiMapper qCktongjiMapper;

    /**
     * 查询窗口人员统计
     * 
     * @param cktjid 窗口人员统计主键
     * @return 窗口人员统计
     */
    @Override
    public QCktongji selectQCktongjiByCktjid(Long cktjid)
    {
        return qCktongjiMapper.selectQCktongjiByCktjid(cktjid);
    }

    /**
     * 查询窗口人员统计列表
     * 
     * @param qCktongji 窗口人员统计
     * @return 窗口人员统计
     */
    @Override
    public List<QCktongji> selectQCktongjiList(QCktongji qCktongji)
    {
        return qCktongjiMapper.selectQCktongjiList(qCktongji);
    }

    /**
     * 新增窗口人员统计
     * 
     * @param qCktongji 窗口人员统计
     * @return 结果
     */
    @Override
    public int insertQCktongji(QCktongji qCktongji)
    {
        return qCktongjiMapper.insertQCktongji(qCktongji);
    }

    /**
     * 修改窗口人员统计
     * 
     * @param qCktongji 窗口人员统计
     * @return 结果
     */
    @Override
    public int updateQCktongji(QCktongji qCktongji)
    {
        return qCktongjiMapper.updateQCktongji(qCktongji);
    }

    /**
     * 批量删除窗口人员统计
     * 
     * @param cktjids 需要删除的窗口人员统计主键
     * @return 结果
     */
    @Override
    public int deleteQCktongjiByCktjids(String cktjids)
    {
        return qCktongjiMapper.deleteQCktongjiByCktjids(Convert.toStrArray(cktjids));
    }

    /**
     * 删除窗口人员统计信息
     * 
     * @param cktjid 窗口人员统计主键
     * @return 结果
     */
    @Override
    public int deleteQCktongjiByCktjid(Long cktjid)
    {
        return qCktongjiMapper.deleteQCktongjiByCktjid(cktjid);
    }
}
